#include "StdAfx.h"
#include "KilledReq.h"
#include "Controller.h"

KilledReq::KilledReq(void)
{
}


KilledReq::~KilledReq(void)
{
}

bool KilledReq::CheckReq(EntityControl *entity)
{
	return *((bool*)entity->getParameter(KILLED_PARAMETER)->getValue());
}

void KilledReq::subscribeParameterChanged(EntityControl *entity,TriggerRequirement*req)
{
	entity->subscribeForParameter(KILLED_PARAMETER, req);
}

void KilledReq::unSubscribeParameterChanged(EntityControl *entity,TriggerRequirement*req)
{

	entity->unSubscribeForParameter(KILLED_PARAMETER, req);
}